import request from '@/utils/request'

// 查询库区列表
export function listErpMaterialType(query, pageReq) {
    return request({
        url: '/wms/materialType/listAll',
        method: 'post',
        data: query,
        params: pageReq
    })
}


// 新增库区
export function addErpMaterialType(data) {
    return request({
        url: '/wms/materialType/add',
        method: 'post',
        data: data
    })
}

// 修改库区
export function updateErpArea(data) {
    return request({
        url: '/wms/material',
        method: 'put',
        data: data
    })
}

// 删除库区
export function delErpMaterialType(id) {
    return request({
        url: '/wms/materialType/delect',
        method: 'post'
    })
}
